<?php if(has_post_thumbnail()) { 
	if ( !is_singular() ) {
	?>
	<section class="frame">
                	<?php 
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); 
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
if ($image) : ?>
    <img src="<?php echo $image[0]; ?>" alt="" />
<?php endif; ?> 
                    <span class="overlay"><a href="<?php the_permalink() ?>" class="zoom-btn"></a></span>
                </section>
                <div class="text">
                    <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
                    <p class="meta"><?php the_time('F j, Y') ?></p>   

                       <p><?php cl_excerpt('cl_excerptlength_post', 'cl_excerptmore'); ?></p>
                    </div>
                                   <div class="categoriess"><?php the_category(' '); ?></div>
	<div class="postauthors"><?php the_author_posts_link(); ?></div>
    <div class="postcomments"><?php comments_popup_link(__('No Comments', 'themeText'), __('1 Comment', 'themeText'), __( '% Comments', 'themeText') ); ?></div> 
    <?php } else { ?>
   	<section class="frame">
                	<?php 
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); 
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
if ($image) : ?>
    <img src="<?php echo $image[0]; ?>" alt="" />
<?php endif; ?> 
                    
                </section>
    <div class="text">
                    <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
                    <p class="meta"><?php the_time('F j, Y') ?></p>   

                       <p><?php the_content(); ?></p>
                    </div>
                                   <div class="categoriess"><?php the_category(' '); ?></div>
	<div class="postauthors"><?php the_author_posts_link(); ?></div>
    <div class="postcomments"><?php comments_popup_link(__('No Comments', 'themeText'), __('1 Comment', 'themeText'), __( '% Comments', 'themeText') ); ?></div> 
<?php } } ?>
  